package com.dems.service.impl;

import com.dems.dao.dataobject.CfgArea;
import com.dems.dao.mapper.la.CfgAreaMapper;
import com.dems.domain.AreaVO;
import com.dems.service.CfgAreaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class CfgAreaServiceImpl implements CfgAreaService {
    @Autowired
    private CfgAreaMapper cfgAreaMapper;

    @Override
    public List<CfgArea> queryAreaList(AreaVO areaVO) {
        CfgArea cfgArea = new CfgArea();
        BeanUtils.copyProperties(areaVO, cfgArea);
        List<CfgArea> cfgAreas = cfgAreaMapper.queryAreaList(cfgArea);
        return cfgAreas;
    }
}
